package com.edu.app.service.sys.linkservices;

import com.edu.app.bean.core.SysCustomer;
import com.edu.app.bean.core.SysUser;
import com.edu.app.bean.linkbeans.SysUserCustomer;

import com.edu.app.service.sys.BaseService;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface SysUserCustomerService extends BaseService<SysUserCustomer> {
    Integer assignCustomers(String data);
    List<SysCustomer> getCustomerByUserId(Integer id);
    List<SysUser> getUserByCustomerId(Integer id);
    List<SysUser> getUserByCustomerIdWithRole(Integer id, String role_name);
    Integer deleteUserCustomerByCustomerId(Integer customer_id);
    Integer deleteUserCustomerByUserId(Integer user_id);
    PageInfo getUserCustomerByPage(String username, Integer currentPage, Integer pageSize);
    PageInfo getUserPoCustomerByPage(String username, Integer currentPage, Integer pageSize);
}
